<script setup>
import { inject } from 'vue'
const count = inject('appCount')
</script>
<template>
<div>
  <h2>{{ count }}</h2>
</div>
</template>
<style scoped>
.test {
    width: 300px;
    height: 100px;
    border: 1px solid black;
}
</style>